package com.nju.edu.android_app.callback;

import java.io.IOException;

import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;

import android.os.Bundle;
import android.os.Message;
import android.widget.Toast;

import com.nju.edu.android_app.CommentActivity;
import com.nju.edu.android_app.MainActivity;
import com.weibo.sdk.android.WeiboException;
import com.weibo.sdk.android.net.RequestListener;

public class CommentListener implements RequestListener{

	private CommentActivity commentActivity;
	
	public CommentListener(CommentActivity ca){
		this.commentActivity=ca;
	}
	
	@Override
	public void onComplete(String response) {
		// TODO Auto-generated method stub
		//Toast.makeText(this.commentActivity, "评论成功", Toast.LENGTH_SHORT).show();
		this.commentActivity.handler.sendMessage(new Message());
		this.commentActivity.finish();
	}

	@Override
	public void onIOException(IOException e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onError(WeiboException e) {
		// TODO Auto-generated method stub
		
	}

}
